/*
 * XML Type:  InvestmentAccount
 * Namespace: http://ofx.net/types/2003/04
 * Java type: net.ofx.types.x2003.x04.InvestmentAccount
 *
 * Automatically generated - do not modify.
 */
package net.ofx.types.x2003.x04.impl;
/**
 * An XML InvestmentAccount(@http://ofx.net/types/2003/04).
 *
 * This is a complex type.
 */
public class InvestmentAccountImpl extends net.ofx.types.x2003.x04.impl.AbstractAccountImpl implements net.ofx.types.x2003.x04.InvestmentAccount
{
    
    public InvestmentAccountImpl(org.apache.xmlbeans.SchemaType sType)
    {
        super(sType);
    }
    
    private static final javax.xml.namespace.QName BROKERID$0 = 
        new javax.xml.namespace.QName("", "BROKERID");
    private static final javax.xml.namespace.QName ACCTID$2 = 
        new javax.xml.namespace.QName("", "ACCTID");
    
    
    /**
     * Gets the "BROKERID" element
     */
    public java.lang.String getBROKERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BROKERID$0, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "BROKERID" element
     */
    public net.ofx.types.x2003.x04.BrokerIdType xgetBROKERID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BrokerIdType target = null;
            target = (net.ofx.types.x2003.x04.BrokerIdType)get_store().find_element_user(BROKERID$0, 0);
            return target;
        }
    }
    
    /**
     * Sets the "BROKERID" element
     */
    public void setBROKERID(java.lang.String brokerid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(BROKERID$0, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(BROKERID$0);
            }
            target.setStringValue(brokerid);
        }
    }
    
    /**
     * Sets (as xml) the "BROKERID" element
     */
    public void xsetBROKERID(net.ofx.types.x2003.x04.BrokerIdType brokerid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.BrokerIdType target = null;
            target = (net.ofx.types.x2003.x04.BrokerIdType)get_store().find_element_user(BROKERID$0, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.BrokerIdType)get_store().add_element_user(BROKERID$0);
            }
            target.set(brokerid);
        }
    }
    
    /**
     * Gets the "ACCTID" element
     */
    public java.lang.String getACCTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCTID$2, 0);
            if (target == null)
            {
                return null;
            }
            return target.getStringValue();
        }
    }
    
    /**
     * Gets (as xml) the "ACCTID" element
     */
    public net.ofx.types.x2003.x04.AccountIdType xgetACCTID()
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AccountIdType target = null;
            target = (net.ofx.types.x2003.x04.AccountIdType)get_store().find_element_user(ACCTID$2, 0);
            return target;
        }
    }
    
    /**
     * Sets the "ACCTID" element
     */
    public void setACCTID(java.lang.String acctid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            org.apache.xmlbeans.SimpleValue target = null;
            target = (org.apache.xmlbeans.SimpleValue)get_store().find_element_user(ACCTID$2, 0);
            if (target == null)
            {
                target = (org.apache.xmlbeans.SimpleValue)get_store().add_element_user(ACCTID$2);
            }
            target.setStringValue(acctid);
        }
    }
    
    /**
     * Sets (as xml) the "ACCTID" element
     */
    public void xsetACCTID(net.ofx.types.x2003.x04.AccountIdType acctid)
    {
        synchronized (monitor())
        {
            check_orphaned();
            net.ofx.types.x2003.x04.AccountIdType target = null;
            target = (net.ofx.types.x2003.x04.AccountIdType)get_store().find_element_user(ACCTID$2, 0);
            if (target == null)
            {
                target = (net.ofx.types.x2003.x04.AccountIdType)get_store().add_element_user(ACCTID$2);
            }
            target.set(acctid);
        }
    }
}
